package com.tx.java.chapter3;


class Cup{
    public Cup(int i){
        System.out.println("Cup("+i+")");
    }
    public void print(int i){
        System.out.println("f("+i+")");
    }
}

class Cups{
    static Cup c1;
    static Cup c2;
    Cup c3 = new Cup(3);
    static {
        c1 = new Cup(1);
        c2 = new Cup(2);
    }
}

public class ExplicitStatic {
    public static void main(String[] args) {
//        Cups.c1.print(99);
        Cups cups = new Cups();
        cups.c3.print(99);
    }
}
